package cn.sciento.starter.sms.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "stong.message")
public class SmsConfigProperties {
  private Sms sms = new Sms();
  
  public static class Sms {
    private boolean fakeAction = false;
    
    private String fakeAccount;
    
    private String fakeIdd = "+86";
    
    public boolean isFakeAction() {
      return this.fakeAction;
    }
    
    public Sms setFakeAction(boolean fakeAction) {
      this.fakeAction = fakeAction;
      return this;
    }
    
    public String getFakeAccount() {
      return this.fakeAccount;
    }
    
    public Sms setFakeAccount(String fakeAccount) {
      this.fakeAccount = fakeAccount;
      return this;
    }
    
    public String getFakeIdd() {
      return this.fakeIdd;
    }
    
    public Sms setFakeIdd(String fakeIdd) {
      this.fakeIdd = fakeIdd;
      return this;
    }
  }
  
  public Sms getSms() {
    return this.sms;
  }
  
  public SmsConfigProperties setSms(Sms sms) {
    this.sms = sms;
    return this;
  }
}
